﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom.Compiler;
using System.Runtime.Serialization;
using System.Diagnostics;

namespace SmartSpace.UI.Silverlight.Web.Models
{
    /// <summary>
    /// 用户认证模型，继承用户基础模型
    /// </summary>
    public class AuthenticateModel
    {
        /// <summary>
        /// 获得或设置密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 获取或设置登录类型
        /// </summary>
        public AuthenticateType Type { get; set; }

        /// <summary>
        /// 获取或设置认证标识
        /// </summary>
        public string Identifier { get; set; }
    }

    /// <summary>
    /// 登录类型
    /// </summary>
    public enum AuthenticateType
    {
        /// <summary>
        /// 用户编号登录
        /// </summary>
        ID = 1,

        /// <summary>
        /// 邮箱登录
        /// </summary>
        Email = 2
    }
}